import request from '/@/utils/request';


/**
 * Admin api接口集合
 * @method AdminInfo 用户信息
 * @method UserToken 刷新token
 * @method UserSet 更新用户信息
 * @method UserSetPaw 更新用户密码
 */
export function AdminApi() {
	return {
		AdminInfo: () => {
			return request({
				url: '/admin/info',
				method: 'get',
			})
		},
		AdminToken: () => {
			return request({
				url: '/admin/token',
				method: 'post',
			})
		},
		AdminSet: (params?: object) => {
			return request({
				url: '/admin/set',
				method: 'post',
				data:params
			})
		},
		AdminSetPaw: (params?: object) => {
			return request({
				url: '/admin/set_paw',
				method: 'post',
				data:params
			})
		},
	};
}
